Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add some details to field/group/scalar doc #267

Merged
merged 4 commits into from
Sep 5, 2023

Conversation

bendyarm
Copy link
Collaborator

@bendyarm bendyarm commented Aug 28, 2023

In order for a developer to know what their code is supposed to do, it helps to know the
exact spec of the language. For field and scalar values, it helps to know the allowed values.
For the group, the definition of + in terms of coordinates would be too verbose here,
but at least stating that it is a Twisted Edwards curve with specific a and d will let
someone look up the details and do the calculations. Also specified the generator point.
I do not have the environment to make sure the html builds right, so I am hoping a reviewer
can check that before merging this branch.

```aleo
function main:
input r0: field.private;
```

### Group Elements

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually not directly related to the changes in this PR, but since we have just one elliptic curve at the moment,
we could change the sentence just below to omit 'passed into the Aleo instructions compiler'.

Copy link
Contributor

@moAlobaidi moAlobaidi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bendyarm Technically on PTO rn, but ran this locally and HTML renders correctly. LGTM!

Copy link
Contributor

@collinc97 collinc97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My comments re-add double spaces at the end of lines in markdown.
This is desired because it starts the next sentence on a new line in the documentation - improving readability.

I believe your editor removes double spaces at the end of a line @bendyarm. Please address the changes and disable the feature in your editor in the future.

documentation/aleo/03_language.md Outdated Show resolved Hide resolved
documentation/aleo/03_language.md Outdated Show resolved Hide resolved
documentation/aleo/03_language.md Outdated Show resolved Hide resolved
documentation/aleo/03_language.md Outdated Show resolved Hide resolved
documentation/aleo/03_language.md Outdated Show resolved Hide resolved
documentation/aleo/03_language.md Outdated Show resolved Hide resolved
documentation/aleo/03_language.md Outdated Show resolved Hide resolved
documentation/aleo/03_language.md Outdated Show resolved Hide resolved
documentation/aleo/03_language.md Outdated Show resolved Hide resolved
documentation/leo/03_language.md Outdated Show resolved Hide resolved
@bendyarm
Copy link
Collaborator Author

bendyarm commented Sep 1, 2023

@collinc97 Thanks for catching that.
I undid all the end-of-line space removals so the comparison now is just the changed sections.

@bendyarm bendyarm requested a review from collinc97 September 1, 2023 23:28
@collinc97 collinc97 merged commit f084351 into master Sep 5, 2023
2 checks passed
@collinc97 collinc97 deleted the more-on-field-group-scalar branch September 5, 2023 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants